import * as React from "react";
import PropTypes from 'prop-types';
import {ActivityIndicator} from "antd-mobile";

import './Loading.less';

export default class Loading extends React.Component {

  constructor(props) {
    super(props);
  }

  render() {
    return (
      <div className="loading-example">
        <div className="align">
          <ActivityIndicator size="large" />
          {/*<span style={{ marginTop: 8 }}>{this.props.text}</span>*/}
        </div>
      </div>
    )
  }
}

Loading.propTypes = {
  text: PropTypes.string.isRequired
};
